<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
	request.setCharacterEncoding("UTF-8");
	String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : "";
%>
<%
	String basePath = request.getContextPath();
	String path = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+basePath+"/";
	request.setAttribute("path",path);
%>
<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
	<meta name="format-detection" content="telephone=no,address=no,email=no"/>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<title>KAA电商管理后台_会员列表</title>
	<script type="text/javascript" src="${path}/js/jquery-2.1.1.min.js"></script>
	<script src="${path}/js/sidebar-menu.js"></script>
	<!-- <link href="${path}/css/login.css" rel="stylesheet" media="all">  -->
	<link rel="stylesheet" href="${path}/kindeditor/themes/simple/default.css" />
	<link rel="stylesheet" href="${path}/kindeditor/plugins/code/prettify.css" />
	<script src="${path}/kindeditor/kindeditor.js"></script>
	<script src="${path}/kindeditor/lang/zh_CN.js"></script>
	<script src="${path}/kindeditor/plugins/code/prettify.js"></script>
	<!-- BOOTSTRAP STYLES-->
    <link href="${path}/assets/css/bootstrap.css" rel="stylesheet" />
     <!-- FONTAWESOME STYLES-->
    <link href="${path}/assets/css/font-awesome.css" rel="stylesheet" />
        <!-- CUSTOM STYLES-->
    <link href="${path}/assets/css/custom.css" rel="stylesheet" />
     <!-- GOOGLE FONTS-->
   <link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />
</head>
<script language="JavaScript">
    KindEditor.ready(function(K) {
        var editor1 = K.create('textarea[name="content1"]', {
            cssPath : '${path}/kindeditor/plugins/code/prettify.css',
            uploadJson : '${path}/kindeditor/jsp/upload_json.jsp',
            fileManagerJson : '${path}/kindeditor/jsp/file_manager_json.jsp',
            allowFileManager : true,
            afterCreate : function() {
                var self = this;
                K.ctrl(document, 13, function() {
                    self.sync();
                    document.forms['example'].submit();
                });
                K.ctrl(self.edit.doc, 13, function() {
                    self.sync();
                    document.forms['example'].submit();
                });
            }
        });
        prettyPrint();
    });
    <%!
    private String htmlspecialchars(String str) {
        str = str.replaceAll("&", "&amp;");
        str = str.replaceAll("<", "&lt;");
        str = str.replaceAll(">", "&gt;");
        str = str.replaceAll("\"", "&quot;");
        return str;
    }
    %>
</script>
<body class="main" id="pageCotent">
	
	<div class="main_con_wrap">
		<%=htmlData%>
		
		<form name="example" method="post" action="${path}/savePhotographer" enctype="multipart/form-data">
			<p>
				<a href="./photographerList">BACK</a>
			</p>

			
			 <p>
				<span>图像:<input type="file" name="file" style="width:30%" /></span>
				
			</p>
			<table>
				<tr>
				 <td  width="30%">
					<div class="input-group">
  						<span class="input-group-addon">名称</span>
  						<input type="text" id="name" name="name" class="form-control" />
					</div>
				</td>
				<td  width="10%">&nbsp;</td>
				</tr>
				
				<tr>
				 <td  width="30%">
					<div class="input-group">
  						<span class="input-group-addon">描述</span>
  						<input type="text" id="describe" name="describe" class="form-control" />
					</div>
				</td>
				<td  width="10%">&nbsp;</td>
				</tr>
				
				<tr>
				 <td  width="30%">
					<div class="input-group">
  						<span class="input-group-addon">描述</span>
  						<input type="text" id="appointment" name="appointment" class="form-control" />
					</div>
				</td>
				<td  width="10%">&nbsp;</td>
				</tr>
				
				<tr>
				 <td  width="30%">
					<div class="input-group">
  						<span class="input-group-addon">描述</span>
  						<input type="text" id="experience" name="experience" class="form-control" />
					</div>
				</td>
				<td  width="10%">&nbsp;</td>
				</tr>
				
			</table>
			
			<textarea name="content1" cols="100" rows="8" style="width:80%;height:200px;visibility:hidden;float:middle;"><%=htmlspecialchars(htmlData)%></textarea>
			<br />
			<input type="submit" name="button" value="提交内容" /> (提交快捷键: Ctrl + Enter)
		</form>
	</div><!-- main_con_wrap -->

<script>
	/////////////////////////侧边栏按钮
	$.sidebarMenu($('.sidebar-menu'))

    /////////////////////////创建全选反选函数
</script>
 <!-- /. WRAPPER  -->
    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
    <!-- JQUERY SCRIPTS -->
    <script src="${path}/assets/js/jquery-1.10.2.js"></script>
      <!-- BOOTSTRAP SCRIPTS -->
    <script src="${path}/assets/js/bootstrap.min.js"></script>
      <!-- CUSTOM SCRIPTS -->
    <script src="${path}/assets/js/custom.js"></script>
</body>
</html>